<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="lib/axios.min.js"></script>
</head>
<body>
	<button>get1</button>
	<button>get2</button>
	<button>get3</button>
	<button>get4</button>
</body>
<script>
	const btns = document.querySelectorAll("button");
	
	const zhangpeiyue = axios.create({
		baseURL:"http://zhangpeiyue.com"
	});
	const local = axios.create({
		baseURL:"http://127.0.0.1",
		params:{
			age:12
		}
	})
	btns[0].onclick = function(){
		zhangpeiyue.get("/scoreList/1");
	}
	btns[1].onclick = function(){
		zhangpeiyue.get("/scoreList/2")
	}
	btns[2].onclick = function(){
		local.get("/scoreList/3")
	}
	btns[3].onclick = function(){
		local.get("/scoreList/4")
	}
</script>
</html>